import request from '@/utils/request'

// 护校点------------------------------------------------
export function qryProtectSchoolPage(params) {
  return request({
    url: '/api/crm/duty/sch/qryProtectSchoolPage',
    method: 'post',
    data: params
  })
}

export function qryProtectSchoolCount(params) {
  return request({
    url: '/api/crm/duty/sch/qryProtectSchoolCount',
    method: 'post',
    data: params
  })
}

export function exportProtectSchool(params) {
  return request({
    url: '/api/crm/duty/sch/exportProtectSchool',
    method: 'post',
    data: params,
    responseType: 'blob'
  })
}

export function qryProtectSchoolById(params) {
  return request({
    url: '/api/crm/duty/sch/qryProtectSchoolById/' + params,
    method: 'get'
  })
}


// 必到点------------------------------------------------
export function qryPointPage(params) {
  return request({
    url: '/api/crm/duty/point/qryPointPage',
    method: 'post',
    data: params
  })
}

export function qryPointCount(params) {
  return request({
    url: '/api/crm/duty/point/qryPointCount',
    method: 'post',
    data: params
  })
}

export function exportPoint(params) {
  return request({
    url: '/api/crm/duty/point/exportPoint',
    method: 'post',
    data: params,
    responseType: 'blob'
  })
}

export function qryPointById(params) {
  return request({
    url: '/api/crm/duty/point/qryPointById/' + params,
    method: 'get'
  })
}


// 双进巡查------------------------------------------------
export function qryDoublePatrolPage(params) {
  return request({
    url: '/api/crm/duty/doublepatrol/qryDoublePatrolPage',
    method: 'post',
    data: params
  })
}

export function qryDoublePatrolCount(params) {
  return request({
    url: '/api/crm/duty/doublepatrol/qryDoublePatrolCount',
    method: 'post',
    data: params
  })
}


export function exportDoublePatrol(params) {
  return request({
    url: '/api/crm/duty/doublepatrol/exportDoublePatrol',
    method: 'post',
    data: params,
    responseType: 'blob'
  })
}

export function qryDoublePatrolById(params) {
  return request({
    url: '/api/crm/duty/doublepatrol/qryDoublePatrolById/' + params,
    method: 'get'
  })
}

// 路长制------------------------------------------------
export function qryRoadListPage(params) {
  return request({
    url: '/api/crm/duty/road/qryRoadListPage',
    method: 'post',
    data: params
  })
}

export function qryRoadCount(params) {
  return request({
    url: '/api/crm/duty/road/qryRoadCount',
    method: 'post',
    data: params
  })
}

export function roadExport(params) {
  return request({
    url: '/api/crm/duty/road/export',
    method: 'post',
    data: params,
    responseType: 'blob'
  })
}

export function qryRoadDetailById(params) {
  return request({
    url: '/api/crm/duty/road/qryRoadDetailById/' + params,
    method: 'get'
  })
}

// 交通整治------------------------------------------------
export function qryTrafficListPage(params) {
  return request({
    url: '/api/crm/duty/traffic/qryTrafficListPage',
    method: 'post',
    data: params
  })
}

export function qryTrafficCount(params) {
  return request({
    url: '/api/crm/duty/traffic/qryTrafficCount',
    method: 'post',
    data: params
  })
}

export function trafficExport(params) {
  return request({
    url: '/api/crm/duty/traffic/export',
    method: 'post',
    data: params,
    responseType: 'blob'
  })
}

export function qryTrafficDetailById(params) {
  return request({
    url: '/api/crm/duty/traffic/qryTrafficDetailById/' + params,
    method: 'get'
  })
}


// 十人十车------------------------------------------------
export function qryTenListPage(params) {
  return request({
    url: '/api/crm/duty/ten/qryTenListPage',
    method: 'post',
    data: params
  })
}

export function qryTenCount(params) {
  return request({
    url: '/api/crm/duty/ten/qryTenCount',
    method: 'post',
    data: params
  })
}

export function tenExport(params) {
  return request({
    url: '/api/crm/duty/ten/export',
    method: 'post',
    data: params,
    responseType: 'blob'
  })
}

export function qryTenDetailById(params) {
  return request({
    url: '/api/crm/duty/ten/qryTenDetailById/' + params,
    method: 'get'
  })
}



// 巡逻打卡------------------------------------------------
export function qryPatrolPage(params) {
  return request({
    url: '/api/crm/duty/patrol/qryPatrolPage',
    method: 'post',
    data: params
  })
}

export function qryPatrolCount(params) {
  return request({
    url: '/api/crm/duty/patrol/qryPatrolCount',
    method: 'post',
    data: params
  })
}


export function exportPatrol(params) {
  return request({
    url: '/api/crm/duty/patrol/exportPatrol',
    method: 'post',
    data: params,
    responseType: 'blob'
  })
}

export function qryPatrolById(params) {
  return request({
    url: '/api/crm/duty/patrol/qryPatrolById/' + params,
    method: 'get'
  })
}